<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input  placeholder="手机号码" id="tel"/>
<input  type="password" placeholder="密码" id="pwd"/>
<button onclick="login()" >登录</button>
<script src="jquery.js"></script>
<script>
    function login(){
        $.post("https://java60.hfbdqn.cn/login",{tel:tel.value,pwd:pwd.value},
            function (data) {
                if(data){
                    console.log(data);
                    localStorage.userInfo=JSON.stringify(data);
                    location='qq.html'
                }else{
                    alert("登录失败")
                }
            });
    }

</script>
</body>
</html>